<!DOCTYPE html>
<html>
<head lang="en">
  <meta charset="UTF-8">
  <title>系统登录</title>
</head>
<body>
</body>
      <div class="inputbox">
        <label for="userCode">用户名：</label>
        <input type="text" class="input-text" id="userCode" name="code" placeholder="请输入用户名" required/>
      </div>
      <div class="inputbox">
        <label for="userPassword">密码：</label>
        <input type="password" id="userPassword" name="password" placeholder="请输入密码" required/>
      </div>
      <div class="subBtn">

        <input type="submit" value="登录"/>
        <input type="reset" value="重置"/>
      </div>
    </form>
  </section>
</section>
</body>
</html>
<script>
  window.onload = function () {
    let hash = location.hash;
    if (hash === '#error=1') {
      document.getElementById("info").innerText = '账号或者密码错误';
    } else if (hash === '#error=2') {
      document.getElementById("info").innerText = '请登录后访问';
    }
  }
</script>